IDIR = ../../../include
LDIR = ../../../lib
LIBS = ${LDIR}/lib-ds.a ${LDIR}/lib-util.a

CXXFLAGS = -Wall -O2 -m64 -std=c++0x

%.o : %.cpp
	${CXX} ${CXXFLAGS} -I ${IDIR} -c $<

all : testDheap testDdheap testDheapSet testFheapSet testLheapSet

testDheap: testDheap.o ${LIBS}
	${CXX} ${CXXFLAGS} $< ${LIBS} -o $@

testDdheap: testDdheap.o ${LIBS}
	${CXX} ${CXXFLAGS} $< ${LIBS} -o $@

testDheapSet: testDheapSet.o ${LIBS}
	${CXX} ${CXXFLAGS} $< ${LIBS} -o $@

testFheapSet: testFheapSet.o ${LIBS}
	${CXX} ${CXXFLAGS} $< ${LIBS} -o $@

testLfheapSet: testLfheapSet.o ${LIBS}
	${CXX} ${CXXFLAGS} $< ${LIBS} -o $@

testLheapSet: testLheapSet.o ${LIBS}
	${CXX} ${CXXFLAGS} $< ${LIBS} -o $@

clean :
	rm -f *.o
